import request from '@/utils/request'


// 创建费用单
export function createRuleCost(data) {
  return request({
    url: '/payfee/tollCenter/createRoomCost',
    method: 'post',
    data: data
  })
}

// 逐条创建费用单
export function singleCreateRoomCost(data) {
  return request({
    url: '/payfee/tollCenter/singleCreateRoomCost',
    method: 'post',
    data: data
  })
}

// 房屋收费
export function roomCharge(data) {
  return request({
    url: '/payfee/tollCenter/roomCharge',
    method: 'post',
    data: data
  })
}

//结账检查生成当期未生成的常规费用单
export function createFeeForm(data) {
  return request({
    url: '/payfee/tollCenter/createFeeForm',
    method: 'post',
    data: data
  })
}

//查询账期内生成的账单
export function selectFeeFormByFiscalPeriod(query) {
  return request({
    url: '/payfee/tollCenter/selectFeeFormByFiscalPeriod',
    method: 'GET',
    params: query
  })
}

//计算费用
export function computePayfee(data) {
  return request({
    url: '/payfee/tollCenter/computePayfee',
    method: 'post',
    data: data
  })
}

export function payRecord(ids){
  return request({
    url: '/payfee/tollCenter/selectLogsIds/' + ids,
    method: 'get'
  })
}

export function consequencePay(data) {
  return request({
    url: '/payfee/calculate/consequence',
    method: 'post',
    data: data
  })
}

//查询计算费用日志
export function computePayFeeLogList(query) {
  return request({
    url: '/payfee/computePayFeeLog/list',
    method: 'GET',
    params: query
  })
}
